/*************[start global system]******************/
/*
--- 01 TYPOGRAPHY SYSTEM

- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font weights
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700


--- 07 WHITESPACE

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/


* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
    list-style: none;
    word-wrap: break-word;

    text-transform: capitalize;

    font-family: "cairo";
}

html {
    /* font-size: 10px; */
    /* 10px / 16px = 0.625 = 62.5% */
    /* Percentage of user's browser font-size setting */
    font-size: 62.5%;
}

body {
    line-height: 1.6;
    font-weight: 500;
    font-size: 14px;
    text-transform: capitalize;
    color: var(--font-dark);
    background: var(--second-bg);
    overflow-x: hidden;
    transition: 0.3s all ease;
    margin: 0 auto;
}



h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    line-height: 1.6;

    color: var(--font-dark);
}

p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    transition: 0.1s all ease;
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: bottom;
}

ul {
    margin: 0;
}

span,
a,
a:hover {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.section-padding {
    padding: 8rem 0;
}

.ontop {
    position: relative;
    z-index: 4;
}

.position-re {
    position: relative;
}

.bg-img {
    background-size: cover;
    background-repeat: no-repeat;
}

.bg-fixed {
    background-attachment: fixed;
}



/*********************************************
*********** start navbar ********************
*******************************************/
nav {
    background: var(--second-bg);
    padding: 1.5rem 3rem;
    position: fixed;
    width: 100%;
    box-shadow: var(--shadow);
    transition: 0.3s all ease;
    z-index: 999999;
}

.navProgress {
    position: absolute;
    bottom: 0;
    transition: 0.4s all ease;
    height: 4px;
    border-radius: 3rem;
    width: 100%;
    right: 0;
    background-color: #d1d5db;
}

.navProgress .navProgChild {
    height: 100%;
    background-color: var(--d-blue-color);
    position: absolute;
    bottom: 0;
    width: 0;
    border-radius: 3rem;
}

nav .customeContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.navAtom img {
    width: 50px;
}

.logoBrand {
    font-size: 2.4rem;
    margin: 0 0.8rem 0 1.5rem;
    color: var(--font-dark);
    font-weight: bold;
}

/*** light and dark svg ***/
.sun,
.moon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0;
    transition: 0.3s all ease;
}

.sun {
    z-index: 2;
    opacity: 1;
}

.dark .sun {
    opacity: 0;
    z-index: 1;
}

.sun svg {
    color: #feca57;
    width: 35px;
    transition: 0.3s all ease;
    transform: rotate(90deg);
}

.dark .sun svg {
    transform: rotate(0deg);
}

.dark .moon {
    opacity: 1;
    z-index: 2;
}

.moon svg {
    width: 35px;
    transform: rotate(180deg);
    transition: 0.3s all ease;
}

.dark .moon svg {
    transition: 0.3s all ease;
    transform: rotate(45deg);
}

/** search **/
.search {
    position: relative;
    width: 30%;
    margin-left: 3rem;
}

.search span {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #b4b4b4;
}

.search input {
    width: 100%;
    padding: 0.5rem 3rem 0.5rem 1.5rem;
    border-radius: 3rem;
    border: 1px solid #707070;
    transition: 0.3s all ease;
    background: var(--second-bg);
    color: var(--font-dark);
}

.search input:focus {
    box-shadow: var(--shadow);
}

/*** register ***/
.left .register {
    display: flex;
}

.signup {
    margin-left: 2.5rem;
}

.regItem,
.regItem:hover {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
}

.signup .regItem,
.login .regItem {
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    transition: 0.3s all ease;
    color: var(--font-dark);
    position: relative;
}

.signup:hover .regItem,
.login:hover .regItem {
    transform: translateY(-0.5rem);
}

.signup .regIcon,
.login .regIcon {
    transition: 0.2s cubic-bezier(0.88, 0.58, 0.5, 2.72) all;
}

.signup:hover .regIcon,
.login:hover .regIcon {
    transform: translateY(-0.3rem) rotate(10deg);
}

.regIcon {
    margin-left: 1rem;
    width: 25px;
}

.line {
    position: absolute;

    background-color: transparent;
}

.signup .line {
    background-color: var(--l-red-color);
}

.login .line {
    background-color: var(--l-blue-color);
}

.regItem .line:nth-child(1) {
    left: 0;
    bottom: 0;
    height: 100%;
    width: 2px;
    transform: scaleY(0);
    transform-origin: top;
    transition: 0.3s transform ease;
}

.regItem:hover .line:nth-child(1) {
    transform: scaleY(1.0001);
    transform-origin: bottom;
}

.regItem .line:nth-child(2) {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: 0.3s transform ease;
}

.regItem:hover .line:nth-child(2) {
    transform: scaleX(1.0001);
    transform-origin: left;
}

.regItem .line:nth-child(3) {
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: 0.3s transform ease;
    transition-delay: 0.3s;
}

.regItem:hover .line:nth-child(3) {
    transform: scaleX(1.0001);
    transform-origin: left;
    transition: 0.3s transform ease;
}

.regItem .line:nth-child(4) {
    right: 0;
    bottom: 0;
    height: 100%;
    width: 2px;
    transform: scaleY(0);
    transform-origin: top;
    transition: 0.3s transform ease;
}

.regItem:hover .line:nth-child(4) {
    transform: scaleY(1.0001);
    transform-origin: bottom;
    transition: 0.3s transform ease;
}

.toggleBarBtn {
    display: none;
}

/*********************************************
*********** start header ********************
*******************************************/
.header {
    padding: 10rem 0 12rem;
    background: var(--main-bg);
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6rem), 0% 100%);
    border-radius: 1.5rem;
    transition: .3s all ease;
}

.pageName {
    color: var(--font-dark);
    font-size: 2.8rem;
    font-weight: bold;
    text-align: center;
}

.grade1 .pageName span {
    color: var(--l-yellow-color);
}

.grade2 .pageName span {
    color: var(--l-blue-color);
}

.grade3 .pageName span {
    color: var(--d-red-color);
}

/*********************************************
*********** start levels ********************
*******************************************/
.bigRow {
    justify-content: center;
}

.searchParent {
    min-height: 50vh;
    padding: 5rem 1rem 8rem;
}

.filter-control {
    display: flex;
    /* align-items: center; */
    margin-bottom: 4rem;
}

.filter-btn,
.category-btn {
    display: flex;
    align-items: center;
    min-width: 14rem;
    height: 100%;
    background: none;
    border: 2px solid var(--font-dark);
    padding: 2rem 1.5rem;
    color: var(--font-dark);
    transition: 0.3s all ease;
}

.categories-btn-parent {
    margin: 0 2rem 0 0;
    position: relative;
}

.category-btn {
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

.filter-btn {
    justify-content: center;
    font-size: 1.6rem;
}

.filter-name {
    margin: 0 0.5rem;
}

.ctg-menu {
    position: absolute;
    background-color: var(--second-bg);
    box-shadow: var(--shadow);
    width: 16rem;
    opacity: 0;
    overflow-y: scroll;
    left: 50%;
    transform: translateX(-50%);
    top: 150%;
    border-radius: 1rem;
    z-index: -5;
    transition: 0.3s all ease;
    max-height: 15rem;
}

.ctg-menu.active {
    top: 120%;
    opacity: 1;
    z-index: 99;
}

.ctg-menu::-webkit-scrollbar {
    display: none;
}

.ctg-menu p {
    padding: 0.5rem 1rem;
    transition: 0.2s all ease;
    color: var(--font-dark);
}

.ctg-menu p:hover {
    color: var(--d-red-color);
}

.ctg-menu p:not(:last-of-type) {
    border-bottom: 1px solid #c7c7c7;
    cursor: pointer;
    margin-bottom: 1rem;
}

.categories-btn-parent {
    margin: 0 2rem 0 0;
    position: relative;
}

.category-btn {
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

.ctg-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ctg-by {
    font-size: 1.2rem;
}

.ctg-name,
.ctg-arrow {
    font-size: 1.6rem;
}

.ctg-arrow {
    align-self: flex-end;
    margin-right: 2rem;
}

.filter-item {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    color: var(--font-dark);
    transition: 0.3s all ease;
}

.filter-item input {
    margin-left: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

.filterParent {
    display: none;
    background: var(--second-bg);
    transition: 0.4s all ease;
}

.active .filterParent {
    display: block;
}

.closeFilter {
    color: var(--font-dark);
    font-size: 2.4rem;
    position: absolute;
    top: 1rem;
    left: 2rem;
    cursor: pointer;
    display: none;
    transition: 0.3s all ease;
}

.closeFilter:hover {
    color: var(--d-yellow-color);
}

.myaccordion {
    margin-top: 1.75rem;
}

.card {
    border: none;
    border-top: 1px solid var(--font-dark);
    border-radius: 0;
    background: transparent;
    transition: 0.4s all ease;
}

.card-header {
    padding: 0;
    background-color: transparent;
    border: none;
}

.card-header button {
    width: 100%;
    padding: 1.5rem 1rem;
    color: var(--font-dark);
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
}

.card-header button .filterArrow {
    font-size: 1.8rem;
    transition: 0.3s all ease;
    transform: rotate(180deg);
}

.card-header button.collapsed .filterArrow {
    transform: rotate(0deg);
}

.card-header button:hover {
    color: var(--font-dark);
    text-decoration: none;
}

.card-header button:focus {
    text-decoration: none;
    box-shadow: none;
}

/* .levelsBox .row {
    justify-content: center;
} */


.noLec {
    width: 50%;
    margin: 0 auto;
}

.grade1 .levelPrice {
    color: var(--l-yellow-color);
}

.grade2 .levelPrice {
    color: var(--l-blue-color);
}

.grade3 .levelPrice {
    color: var(--d-red-color);
}

.cards-control {
    margin-top: 5rem;
}

.cards-control .btns {
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 5;
    justify-content: center;
}

.btns .card-btn {
    background: none;
    border: 1px solid #dee2e6;
    padding: 0.8rem 1.5rem;
    transition: 0.3s all ease;
    color: var(--font-dark);
}

.btns .card-btn:hover,
.btns .card-btn.active {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}


/*****************************************
********** start footer ******************
*****************************************/
footer {
    padding: 2rem 0;
    /* background-color: var(--green-color); */
    position: relative;
}

.footerIcon {
    font-size: 3.4rem;
    margin-bottom: 1rem;
}

.footerIcon a {
    color: #fff;
    transition: 0.3s all ease;
    cursor: pointer;
}

.footerIcon a:nth-child(1):hover {
    color: var(--d-blue-color);
}

.footerIcon a:nth-child(2):hover {
    color: var(--d-red-color);
}

.footerIcon a:nth-child(3):hover {
    color: #a29bfe;
}

.footerIcon a:hover {
    transform: scale(1.1) rotate(15deg);
    color: #888;
}

.footerIcon a:not(:last-child) {
    margin-left: 1.5rem;
}

.copyRight {
    color: #fff;
    font-size: 2rem;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid;
}

.crParent {
    width: fit-content;
    display: flex;
    align-items: center;
    margin: 0 auto;
    max-width: 70%;
}

.copyRight p {
    font-size: 1.8rem;
}

.copyRight .space {
    margin: 0 1rem;
}

.copyRight .crTeacher {
    font-weight: bold;
}

.copyRight .heart {
    color: #ff5d3b;
}

.copyRight a {
    text-decoration: underline;
    font-weight: bold;
}

/** footer waves **/

/**************/

div.waves {
    width: 100%;
    bottom: 0;
    /*height: 100%;*/
    position: absolute;
    z-index: 4;
}

.tutorial-link {
    font-family: sans-serif;
    text-align: center;
}

.waves svg {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;

    animation-duration: 0.1s !important;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.spacer {
    height: 100px;
    width: 100%;
}

@keyframes example {
    0% {
        left: 0px;
        top: 0px;
    }

    50% {
        left: -2000px;
        top: 200px;
    }

    100% {
        left: 0px;
        top: 0px;
    }
}

/******************************************
********************************************
*********************************************
*********************************************
****** start dark ****************************
****************************************
********************************************
*********************************************
**********************************************/

.dark:root {
    --main-bg: #2d3946;
    --second-bg: #556373;
    --font-dark: #fff;
    --font-light: #ebebeb;
}

/***** start nav ******/
.dark nav {
    background: #272d3d;
}

.dark .navProgress {
    background: #373e47;
}

.dark .navProgChild {
    background: var(--green-color);
}

/***** start levels ******/
.dark .grade1 .typeGrade {
    background-color: var(--d-red-color);
}

.dark .grade2 .typeGrade {
    background-color: var(--d-blue-color);
}

.dark .grade3 .typeGrade {
    background-color: var(--d-yellow-color);
}

.dark .grade1 .levelPrice {
    color: var(--d-red-color);
}

.dark .grade2 .levelPrice {
    color: var(--d-blue-color);
}

.dark .grade3 .levelPrice {
    color: var(--d-yellow-color);
}

.dark .filter-btn,
.dark .category-btn {
    background: var(--main-bg);
}

.dark .levelItem {
    background-color: #405368;
}

.dark .levelDescription {
    color: #b5b5b5;
}

/**** footer ******/

.dark footer .wave1 path {
    fill: rgba(64, 83, 104);
    transition: 0.3s all ease;
}

.dark footer .wave2 path {
    fill: rgba(64, 83, 104, 0.6);
    transition: 0.3s all ease;
}

.dark footer .wave3 path {
    fill: rgba(64, 83, 104, 0.4);
    transition: 0.3s all ease;
}

.errorImage {
    width: 40%;
    margin: 0 auto;
}